<template>
  <div class="hello styles">
    <h1 class="h1">登录</h1>
    <br>
    <br>
    <ul class="userTable">
       <li>
         <p>账号 : </p>
         <p><input type="" name="" value="" class="keyInput"></p>
       </li>
       <li>
         <p>密码 : </p>
         <p><input type="" name="" value="" class="keyInput"></p>
       </li>
    </ul>
    <div class="userLogin" @click="">
       <router-link to="/Home">登录</router-link>
    </div>
  </div>
</template>

<script>
import {mapState,mapMutations,mapActions} from 'vuex';
import 'regenerator-runtime/runtime'

export default {
  name: 'loginLand',
  data () {
    return {
      fuck:"11"
    }
  },
  computed:{
    /*catch store.data*/
    ...mapState({
      name:state => state.login.name 
    })
  },
  methods:{
    /*catch store.mutation*/
    ...mapMutations(['setName','setAuthority']),
    /*catch store.action*/
    ...mapActions(['addAction','reduceAction','SET_AUTHORITY']),
    /*normal*/ 
   async open () {
      // await console.log(1)
    }
  },
  mounted(){
    const param = {a:1};
    this.SET_AUTHORITY(param);
  }
}
</script>

<style>
@import "./style.less"
</style>
